cmake_minimum_required(VERSION 3.8)
project(doc_var)

define_property(VARIABLE PROPERTY myvar BRIEF_DOCS "brief docs for myvar" FULL_DOCS "full docs for myvar")
#get_property(var VARIABLE PROPERTY myvar DEFINED)
set(myvar "This is myvar value")
#get_property(var VARIABLE PROPERTY myvar SET)
#get_property(var VARIABLE PROPERTY myvar BRIEF_DOCS)
get_property(var VARIABLE PROPERTY myvar FULL_DOCS)
message(STATUS "var = ${var}")
message(STATUS "myvar = ${myvar}")
